struct fragment
{
	float4 position  : POSITION;
	float4 color0    : COLOR0;
	float2 texcoord0 : TEXCOORD0;
};

struct pixel
{
	float4 color : COLOR;
};

pixel main( fragment IN,
		    const uniform sampler2D texture,
			const uniform float1 time)
{
	pixel OUT;

	float multiply = 0.2 + 0.05*sin(time*30);
	float2 newtexcoord = IN.color0.xy*multiply;
	newtexcoord += IN.texcoord0*4;
	
	float4 texelcolor = tex2D(texture, newtexcoord);
	texelcolor *= texelcolor;

	OUT.color = texelcolor*0.6*IN.color0;
	return OUT;

	
	
	
}
